package com.itheima.reggie.mapper;

import com.itheima.reggie.entity.OrderDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: dw
 * @Date 2022/3/17 18:32
 */
public interface OrderDetailMapper {

    /**
     * 批量插入订单明细表数据
     * @param orderDetailList
     * @return
     */
    Integer saveBatch(@Param("orderDetailList") List<OrderDetail> orderDetailList);

    /**
     * 根据订单id查询订单详情
     * @param Oid
     * @return
     */
    List<OrderDetail> findByOid(Long Oid);
}
